//
//  CYBaseViewController.h
//  SafetyInHand
//
//  Created by admin on 2022/7/29.
//

#import <UIKit/UIKit.h>

// Business
#import "UIViewController+Button.h"
#import "UIViewController+Alert.h"
#import "UIViewController+ForceUpdate.h"


typedef NS_ENUM(NSInteger, CYNavStatusBarColor) {
    /// 黑色 默认
    CYNavStatusBarColor_Black,
    /// 白色
    CYNavStatusBarColor_White
};

NS_ASSUME_NONNULL_BEGIN

@interface CYBaseViewController : UIViewController
/// 导航栏标题
@property (nonatomic, copy) NSString *navigationTitle;
/// 导航栏标题颜色
@property (nonatomic, strong) UIColor *navigationTitleColor;
/// 导航栏背景色
@property (nonatomic, strong) UIColor *navigationBarColor;
/// 状态栏颜色
@property (nonatomic, assign) CYNavStatusBarColor navigationStatusBarColor;
/// 是不是隐藏导航栏
@property (nonatomic, assign, getter=isHiddenNavigationBar) BOOL hiddenNavigationBar;
/// 是不是显示导航栏底部的分割线
@property (nonatomic, assign, getter=isShowNavigationBarBottomLine) BOOL showNavigationBarBottomLine;
/// 是否禁止全屏返回, 默认是允许
@property (nonatomic, assign, getter=isDisableFullScreenPop) BOOL disableFullScreenPop;

/// 自定义导航栏的左边
@property (nonatomic, strong) UIButton *navLeftBtn;
- (void)backDefaultAction:(UIButton *)button;
/// 自定义导航栏的右边按钮
@property (nonatomic, strong) UIButton *navRightBtn;
/// 自定义导航栏的右边案例数组(优先级高于naviRightBtn)
@property (nonatomic, strong) NSArray<UIButton *> *navRightButtons;
/// 关闭pop返回时的动画，默认NO
@property (nonatomic, assign, getter=isCloseBackPopAnimated) BOOL closeBackPopAnimated;

@end
NS_ASSUME_NONNULL_END
